package frameWork.mainComponent;

import javax.swing.*;
import java.awt.*;

public class MainFrame extends JFrame{
    private MainDrawer dr;

    public MainDrawer getDrawer() {
        return dr;
    }

    /***
     * 主画板
     */
    public MainFrame(){
        try {
            dr = new MainDrawer();
        } catch (Exception e) {
            e.printStackTrace();
        }
        this.add(dr, BorderLayout.CENTER);
        dr.repaint();
        this.setTitle("");
        this.setExtendedState(JFrame.MAXIMIZED_BOTH);
        //this.setSize(600, 600);
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
